import React from "react";
import "./detail.css";
class detail extends React.Component{
    render(){
        let {title,lastName}= this.props.location.query
        // let {title,lastName}= this.props.location.state

        return(
            <div>
                <p className='detail'>{title}</p>
                <img className='content_bg' src={lastName} alt='你好'/>
            </div>
        )
    }
}
export default detail